org.neo4j.helpers.collection
Class NestingIterable<T,U>
java.lang.Object
org.neo4j.helpers.collection.NestingIterable<T,U>
- Type Parameters:
T - the type of items.U - the type of items in the surface item iterator
- All Implemented Interfaces:
- Iterable<T>
public abstract class NestingIterable<T,U>
- extends Object
- implements Iterable<T>
For each item in the supplied iterator (called "surface item") there's
instantiated an iterator from that item which is iterated before moving
on to the next surface item.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NestingIterable
public NestingIterable(Iterable<U> source)
iterator
public Iterator<T> iterator()
- Specified by:
iterator in interface Iterable<T>
createNestedIterator
protected abstract Iterator<T> createNestedIterator(U item)
Copyright © 2010 Neo4j. All Rights Reserved.